package com.hxh.generater.springBoot.util.methodParse.entity;

import lombok.Data;

import java.util.Objects;

/**
 * @ProjectName: AICode
 * @Package: com.hxh.generater.springBoot.entity
 * @ClassName: JavaClassParams
 * @Author: HXH
 * @Description:
 * @Date: 2023/12/20 17:45
 */
@Data
public class JavaClassParams {
    private String key;
    private String value;
    private String desc;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof JavaClassParams)) return false;
        JavaClassParams that = (JavaClassParams) o;
        return getKey().equals(that.getKey()) &&
                getValue().equals(that.getValue());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getKey(), getValue());
    }
}
